Cocktail Help Reference
GetFindQuery(Expression<Func<T,Boolean>>,Func<IQueryable<T>,IOrderedQueryable<T>>,Action<IFetchOptions<T>>) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > Repository<T> Class > GetFindQuery Method : GetFindQuery(Expression<Func<T,Boolean>>,Func<IQueryable<T>,IOrderedQueryable<T>>,Action<IFetchOptions<T>>) Method



predicate
The predicate expression used to qualify the list of entities.
orderBy
Sorting function to sort the returned list of entities.
fetchOptions
Delegate to specify additional fetching options.

Glossary Item Box

Returns the query to retrieve a list of entities.

Syntax

Visual Basic (Declaration) 
Protected Overloads Overridable Function GetFindQuery( _
   ByVal predicate As Expression(Of Func(Of T,Boolean)), _
   ByVal orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T)), _
   ByVal fetchOptions As Action(Of IFetchOptions(Of T)) _
) As IdeaBlade.EntityModel.IEntityQuery(Of T)
Visual Basic (Usage)Copy Code
Dim instance As Repository(Of T)
Dim predicate As Expression(Of Func(Of T,Boolean))
Dim orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T))
Dim fetchOptions As Action(Of IFetchOptions(Of T))
Dim value As IdeaBlade.EntityModel.IEntityQuery(Of T)
 
value = instance.GetFindQuery(predicate, orderBy, fetchOptions)
C# 
protected virtual IdeaBlade.EntityModel.IEntityQuery<T> GetFindQuery( 
   Expression<Func<T,bool>> predicate,
   Func<IQueryable<T>,IOrderedQueryable<T>> orderBy,
   Action<IFetchOptions<T>> fetchOptions
)
C++/CLI 
protected:
virtual IdeaBlade.EntityModel.IEntityQuery<T^>^ GetFindQuery( 
   Expression<Func<T^,bool>^>^ predicate,
   Func<IQueryable<T^>^,IOrderedQueryable<T^>^>^ orderBy,
   Action<IFetchOptions<T^>^>^ fetchOptions
) 

Parameters

predicate
The predicate expression used to qualify the list of entities.
orderBy
Sorting function to sort the returned list of entities.
fetchOptions
Delegate to specify additional fetching options.

Remarks

Override to modify the query used to retrieve a list of entities

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.